package feedback.web.bean.converter;

import javax.faces.bean.ManagedBean;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;



@ManagedBean(name="cc")
public class CodeConverter implements Converter{
//	/@ManagedProperty("#{codeServices}")
	//private CodeServices sv;
	@Override
	public Object getAsObject(FacesContext context, UIComponent component,
			String value) {
		/*Code ctmp = sv.getCodeByNo(value);
		if(ctmp!=null) return ctmp;*/
		return null;
	}

	@Override
	public String getAsString(FacesContext context, UIComponent component,
			Object value) {
		// TODO Auto-generated method stub
		return /*((Code)value).getCodeNo()*/ "";
	}



	
	

}
